<template>
	<view class="container">
		
		<view class="intro">项目已包含，无需it和注册，可直接使用。在代码区键入字母u，即可通过代码助手列出所有可用组件。光标置于组件名称处按F1，即可查看组件文档。</view>
		<uni-link :href="href" :text="href"></uni-link>
		<view class="iconfont icon-54">
			
		</view>
		 <button type="default" @click="handleGetUserProfile">获取用户的个人信息</button>
	</view>
</template>

<script>
	import { getUserProfile } from "@/utils/asyncWx.js"
	export default {
		async created() {
			let result = await this.$request({
				url:"home/swiperdata"
			});
			console.log(result);
		},
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
			}
		},
		methods: {
			handleGetUserProfile:async function(){
				let result = await getUserProfile();
				console.log(result);
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
